#!/bin/bash
 
output=0
for val in 1 2 3 4 5 6 7 8
do
	output=`expr $val + $output`
done
 
echo "累加结果 $output"
